print(player1['name'] + " chose " + player1['strategy'] +" - "+player2['name'] + " chose " + player2['strategy'] ) if payoff[player1['strategy'],player2['strategy']] == (1,0): print(player1['name'] + " won") if payoff[player1['strategy'],player2['strategy']] == (0,1): print(player2['name'] + " won") else: print("TIE!")